package j03liu;

import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.util.Arrays;

public class J3output {
    public static void main(String[] args) throws Exception {
        //覆盖
//        FileOutputStream fs = new FileOutputStream("_0905/src/j03liu/out.txt");
        FileOutputStream fs = new FileOutputStream("_0905/src/j03liu/out.txt",true);
        //
//        fs.write(57);//2
//        fs.write(new byte[]{97,98});
        fs.write(new byte[]{97,98,99,100},2,2);
        fs.close();
    }
}
/*
public File(String parent, String child)
public File("_0905/abc/a.txt")
public File("_0905/","abc/a.txt")

 */

class J4{
    public static void main(String[] args) {
        byte[] arr = "abcdefg".getBytes();
        System.out.println("arr = " + Arrays.toString(arr));
    }
}